# 操作按钮组件
<template>
  <div class="action-buttons">
    <button class="btn btn-cart" @click="addToCart">
      加入购物车
    </button>
    <button class="btn btn-buy" @click="buyNow">
      立即购买
    </button>
  </div>
</template>

<script>
export default {
  name: 'ActionButtons',
  methods: {
    addToCart() {
      alert('已添加到购物车');
    },
    buyNow() {
      alert('立即购买');
    }
  }
}
</script>

<style scoped>
.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.btn-cart {
  background-color: #f8f9fa;
  color: #333;
  border: 2px solid #e9ecef;
}

.btn-cart:hover {
  background-color: #e9ecef;
  border-color: #d7000f;
  color: #d7000f;
}

.btn-buy {
  background-color: #d7000f;
  color: white;
}

.btn-buy:hover {
  background-color: #b3000c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(215, 0, 15, 0.3);
}
</style>